Self-replicating spacecraft